﻿<%@ Page Language="C#" MasterPageFile="~/Template/USER.Master" AutoEventWireup="true" CodeBehind="giohang.aspx.cs" Inherits="BTN04.USER.giohang" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">

    <div id="title_content" style="width:613px;background-color:#080808;border-top:1px solid #313839; border-right:1px solid #313839;">
        <div style="width:280px; float:left;">
             <div id="title_left_content">
            </div>
            <div id="title_mid_content"> &gt;&gt; Giỏ Hàng Của Bạn
            </div>
            
            <div id="title_right_content">
            </div>
                <div >
                   <asp:GridView ID="gvGioHang" runat="server" AutoGenerateColumns="False" 
                        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="3" DataKeyNames="Masp" ondatabound="gvGioHang_DataBound" 
                        onrowdatabound="gvGioHang_RowDataBound" 
                        onrowdeleting="gvGioHang_RowDeleting" Width="581px" PageSize="2" 
                        AllowPaging="True" 
                        onpageindexchanging="gvGioHang_PageIndexChanging" HorizontalAlign="Center">
                        <PagerSettings FirstPageText="Trang đầu" LastPageText="Trang cuối" 
                            NextPageText="&gt;&gt;" PageButtonCount="2" PreviousPageText="&lt;&lt;" 
                            Mode="NumericFirstLast" />
                        <RowStyle ForeColor="#000066" />
                        <Columns>
                            <asp:BoundField HeaderText="Sản phẩm" />
                            <asp:BoundField HeaderText="Đơn giá" />
                            <asp:TemplateField HeaderText="Số lượng">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:TextBox ID="txtSoLuong" runat="server" Text='<%# Eval("SoLuong") %>'></asp:TextBox>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtSoLuong" ValidChars="0123456789">
                                    </asp:FilteredTextBoxExtender>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Thành tiền" />
                            <asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" 
                                HeaderText="Thao tác" />
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                </div>
             <div>
                <div style ="color:White ;"><asp:Label ID="lbTong" runat="server" Text="Label"></asp:Label></div>
                    <div>
                        <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" 
                            onclick="btnUpdate_Click" width="90px"/>
                        &nbsp;
                        <asp:Button ID="btnThanhToan" runat="server" Text="Thanh toán" width="90px" 
                            onclick="btnThanhToan_Click"/>
                        &nbsp;
                        <asp:Button ID="btnHuy" runat="server" Text="Hủy" width="70px" 
                            onclick="btnHuy_Click" OnClientClick="return DeleteConfirm();"/>
                    </div>
                </div>   
            </div>
         
    </div>
        <div>
            
            <asp:Panel ID="Panel1" runat="server">
            <div style="color :Blue ; font-size :25px;" ><asp:Label ID="thanhtoan" runat="server" Text="Label"></asp:Label></div> 
                <asp:GridView ID="gvHoaDon" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" style="margin-left: 0px" 
                    DataKeyNames="STT" onrowdatabound="gvHoaDon_RowDataBound" Width="602px" 
                    AllowPaging="True" PageSize="4" 
                    onpageindexchanging="gvHoaDon_PageIndexChanging" >
                    <PagerSettings FirstPageText="Trang đầu" LastPageText="Trang cuối" 
                        Mode="NumericFirstLast" NextPageText="&gt;&gt;" PreviousPageText="&lt;&lt;" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <Columns>
                        <asp:BoundField HeaderText="STT" />
                        <asp:BoundField HeaderText="Tên sản phẩm" />
                        <asp:BoundField HeaderText="Số lượng" />
                        <asp:BoundField HeaderText="Đơn giá" />
                        <asp:BoundField HeaderText="Thành tiền" />
                    </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                </asp:GridView>
               <div style="color:Silver  ;" align="center" > <asp:Label ID="lbtonghoadon" runat="server" Text="Label"></asp:Label></div> 
            </asp:Panel>
        </div>
    <div id="mid_content" style="color:White;">
         <div style="padding-top:10px; margin-left:25px; clear:both;"> * Xem thống kê doanh số bán hàng theo tháng của năm
        </div>
        <div style="margin-top:10px; margin-left:25px;"> * Xem thống kê doanh số bán hàng theo năm
        </div>
    </div>
    <div id="bottom_content">
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
